<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of KeditorUtil
 *
 * @author Administrator
 */
class KeditorUtil {

    function getKeditor($id, $formId) {
        import("@.ORG.Net.Keditor");
        $ke = new Keditor();
        $ke->id = $id; //指定textarea的id
        $ke->form = $formId; //指定form的id，默认为from1
        $ke->afterCreate = "ctrlenter"; //定义创建后执行函数，ctrlenter表示ctrl+enter提交表单。
        $keshow = $ke->show(); //生成js代码

        return $keshow;
    }

}

?>
